<?php
session_cache_expire(999999999);
if(!isset($_SESSION)) 
	{ 
		session_start(); 
	}
    include '../../operations/connection.php';
	$id_employee = $_REQUEST['iduser'];
	
	if ($_REQUEST['newlang'] == "EN") {
			include "../../value/value_en.php";
		} else if($_REQUEST['newlang'] == "VN") {
			include "../../value/value_vn.php";
		}
		else {
			include "../../value/value_kr.php";
		}
		
	//MyApproveDoc
	$sql="SELECT count(IDTypeDoc) as MyApproveDoc from approvedoc a
			WHERE a.IDStatus = 1 
			AND a.IDLabel < 1
			AND a.IDEmployee = $id_employee";
	$mysql=mysql_query($sql);
	$r=mysql_fetch_array($mysql);
	$num_my_approveDoc=$r['MyApproveDoc'];
	    
	$sql="SELECT a.isView
				FROM approvedoc a,employee e 
				WHERE a.IDEmployee=e.IDEmployee  and a.IDLabel<1 AND a.IDEmployee='$id_employee' AND a.IDStatus=1 AND a.isView=0;";
	$myappmysql=mysql_query($sql);
?>
<span><img src="images/index_25.gif" alt="" /><a
									href="mydocument-list-mydocument-approved-content"><?=$l_my_approveDoc?>
										(<label id="num_my_approveDoc"> <?php if (mysql_num_rows($myappmysql)==0){?>
										<?=$num_my_approveDoc?> <?php }else{?> <b><?=$num_my_approveDoc?>
										</b> <?php }?> </label>)</a> </span>